#include<iostream>
#include<vector>
#include<string>

using std::vector;
using std::string;
using std::cin; using std::cout; using std::endl;

int main()
{
//	int cnt = 0;
//	while (cin >> cnt)
//	{
//		if (cnt == 42)
//			break;
//	}

	//vector<int> v{ 1,2,3,4,5,6 };
	//for (auto& c : v)
	//	(c % 2 == 1) ? c *= 2 : c;

	//unsigned grade;
	//cin >> grade;
	//string finalgrade = (grade > 90) ? "high pass"
	//	: (grade > 75) ? "pass"
	//	: (grade > 60) ? "low pass"
	//	: "fail";

	unsigned grade;
	string finalgrade;
	cin >> grade;
	if (grade > 90)
	{
		finalgrade = "high pass";
	}
	else if (grade > 75)
	{
		finalgrade = "pass";
	}
	else if (grade > 60)
	{
		finalgrade = "low pass";
	}
	else
	{
		finalgrade = "fail";
	}
	return 0;
}